package com.selftaught.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 医院患者对象
 *
 * @author admin
 * @date 2025-10-23
 */
public class HospitalUser implements Serializable {

    private static final long serialVersionUID = 1L;

    public static final String API_URL = "http://localhost:8080/hospitalUser/simulation";

    public static final String PATID_NO = "patidNo";

    /**
     * 患者未实名身份证号默认值
     */
    public static final String PATID_NO_DEFAULT_VALUE = "000000000000000000";

    /**
     * ID
     */
    private Long id;

    /**
     * 患者手机号
     */
    private String patMobile;

    /**
     * 患者病历号
     */
    private String patCardNo;

    /**
     * 患者 ID
     */
    private String patientId;

    /**
     * 患者性别
     */
    private String patSex;

    /**
     * 患者ID类型
     */
    private String patidType;

    /**
     * 患者名称
     */
    private String patName;

    /**
     * 患者卡类型
     */
    private String patCardType;

    /**
     * 患者年龄
     */
    private String patAge;

    /**
     * 患者类型
     */
    private String patType;

    /**
     * 患者出生日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date patBirth;

    /**
     * 患者家庭住址
     */
    private String patAddress;

    /**
     * 患者身份证号
     */
    private String patidNo;

    /**
     * 患者 totalAmt
     */
    private String totalAmt;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPatMobile() {
        return patMobile;
    }

    public void setPatMobile(String patMobile) {
        this.patMobile = patMobile;
    }

    public String getPatCardNo() {
        return patCardNo;
    }

    public void setPatCardNo(String patCardNo) {
        this.patCardNo = patCardNo;
    }

    public String getPatientId() {
        return patientId;
    }

    public void setPatientId(String patientId) {
        this.patientId = patientId;
    }

    public String getPatSex() {
        return patSex;
    }

    public void setPatSex(String patSex) {
        this.patSex = patSex;
    }

    public String getPatidType() {
        return patidType;
    }

    public void setPatidType(String patidType) {
        this.patidType = patidType;
    }

    public String getPatName() {
        return patName;
    }

    public void setPatName(String patName) {
        this.patName = patName;
    }

    public String getPatCardType() {
        return patCardType;
    }

    public void setPatCardType(String patCardType) {
        this.patCardType = patCardType;
    }

    public String getPatAge() {
        return patAge;
    }

    public void setPatAge(String patAge) {
        this.patAge = patAge;
    }

    public String getPatType() {
        return patType;
    }

    public void setPatType(String patType) {
        this.patType = patType;
    }

    public Date getPatBirth() {
        return patBirth;
    }

    public void setPatBirth(Date patBirth) {
        this.patBirth = patBirth;
    }

    public String getPatAddress() {
        return patAddress;
    }

    public void setPatAddress(String patAddress) {
        this.patAddress = patAddress;
    }

    public String getPatidNo() {
        return patidNo;
    }

    public void setPatidNo(String patidNo) {
        this.patidNo = patidNo;
    }

    public String getTotalAmt() {
        return totalAmt;
    }

    public void setTotalAmt(String totalAmt) {
        this.totalAmt = totalAmt;
    }

    @Override
    public String toString() {
        return "HospitalUser{" +
                "id=" + id +
                ", patMobile='" + patMobile + '\'' +
                ", patCardNo='" + patCardNo + '\'' +
                ", patientId='" + patientId + '\'' +
                ", patSex='" + patSex + '\'' +
                ", patidType='" + patidType + '\'' +
                ", patName='" + patName + '\'' +
                ", patCardType='" + patCardType + '\'' +
                ", patAge='" + patAge + '\'' +
                ", patType='" + patType + '\'' +
                ", patBirth=" + patBirth +
                ", patAddress='" + patAddress + '\'' +
                ", patidNo='" + patidNo + '\'' +
                ", totalAmt='" + totalAmt + '\'' +
                '}';
    }
}
